package com.xbongbong.pro.workorder.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ly1666
 * @date 2019/3/20 下午6:56
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderPersonAddressPojo {

    @NotNull(message = "定位不为空")
    WorkOrderPersonLoactionPojo location;

    @NotNull(message = "地区不为空")
    private String address;

    @NotNull(message = "省不为空")
    private String province;

    @NotNull(message = "区不为空")
    private String district;

    @NotNull(message = "市不为空")
    private String city;

    public WorkOrderPersonAddressPojo() {
        this.address = "";
        this.province = "";
        this.district = "";
        this.city = "";
    }
}
